package com.example.changeactivity03_2;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.TextView;

public class Act3 extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.act3);
		//取得管理員,送過
		Intent intent = getIntent();
		Bundle bund = intent.getExtras();
		//取得包裹需要該包裹的KEY才能解開
		String strData = bund.getString("QK");
		
		TextView vTitle = (TextView)findViewById(R.id.showData);
		vTitle.setText(strData);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.act3, menu);
		return true;
	}

}
